package team.kas.anime.service;

import team.kas.anime.pojo.Comment;
import team.kas.anime.pojo.Result;
import team.kas.anime.pojo.Results;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface CommentService {
    Result listcomment(String value, Integer page, Integer limit);

    Result deleteBykey(String id);

    Result bulkdelete(String[] ids);

    Results<Comment> list(HttpServletRequest request);

    Result reportsearch(String value, Integer page, Integer limit);

    Result searchall(String value, Integer page, Integer limit);

    //查询评论列表
    List<Comment> getCommentListByVideoId(String vid);
    //添加父评论
    Result addcomment(String vid, String uid, String content);
    //添加回复
    Result addreply(String content, Integer pid, String uid, String vid);
}
